<s-table
  ref="tableRef"
  :columns="columns"
  :data="loadData"
  bordered
  :row-key="(record) => record.id"
  :tool-config="toolConfig"
  :scroll="{ x: '100%' }"
>
  <template #bodyCell="{ column, record }">
    <template v-if="column.dataIndex === 'dataType'">
      {{ $TOOL.dictTypeData('dataType', record.dataType) }}
    </template>
    <template v-if="column.dataIndex === 'action'">
      <a-space>
        <%_ for(var i = 0; i < tableConfig.actionList.length; i++){ _%>
          <%_ if(tableConfig.actionList[i] === '删除'){ _%>
            <a-popconfirm title="确定删除此数据？" @confirm="handleDel(record)">
              <a-button
                type="link"
                danger
                class="!px-[0]"
              >删除</a-button>
            </a-popconfirm>
          <%_ } else { _%>
            <a-button type="link" class="!px-[0]" @click="handleEdit(record)">
              <%= tableConfig.actionList[i] %>
            </a-button>
          <%_ } _%>
        <%_ } _%>
      </a-space>
    </template>
  </template>
</s-table>